package com.yyfax.common.form;

import android.content.Context;
import android.text.TextUtils;

import com.yyfax.common.toast.CompatToast;
import com.yyfax.common.tools.RegularExpress;
import com.yyfax.common.tools.Toaster;

/**
 * Created by fuqiang on 2017/5/4.
 * 下拉选择校验
 * Copyright  2017 www.yylending.com. All Rights Reserved.
 */
public class SelectValidate {
    public static boolean validate(Context context, FormSelectView formSelectView, NoticeText noticeText) {

        if (TextUtils.isEmpty(formSelectView.getFormText())) {
			CompatToast.showShortToast(context.getApplicationContext(), noticeText.mEmptyMsg);
            return false;
        }
        return true;
    }
}
